package com.training.java.core.inheritance;

public class SedanCar extends  Car{
	
	private boolean  navigator;

	//constructor
	
	
	public SedanCar(int vinNumber, String make,String model, String color, int maxSpeed,int year,int milesPerHour,boolean  navigator)
	
		{
			   super(vinNumber, make,model, color,  maxSpeed, year, milesPerHour);
			   this.navigator = navigator;
				
		}
	
	
	int  drive()
	{
		
		System.out.println("i'm Sedan driving  with the speed"+ getMilesPerHour());
		return getMilesPerHour();
	}



	public boolean isNavigator() {
		return navigator;
	}
	
	
	
	
	
}


	
	
